package cn.sharp.bbs.event;

import org.springframework.context.ApplicationEvent;

/**
 * 收藏事件
 * @author zhao yu
 */
public class CollectEvent extends ApplicationEvent {
    private Long key;

    public CollectEvent(Object source) {
        super(source);
    }

    public CollectEvent(Object source, Long key) {
        super(source);
        this.key = key;
    }

    public Long getKey() {
        return key;
    }
}
